﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;

namespace NursingFormSystem
{
    /// <summary>
    /// 患者信息
    /// </summary>
    [Serializable]
    public class PatientInfo
    {
        /// <summary>
        /// id
        /// </summary>
        public int ID { get; set; }

        /// <summary>
        /// 住院号
        /// </summary>
        public string PATIENT_ID { get; set; }

        public int VISIT_ID { get; set; }

        public string PATIENT_NAME { get; set; }

        public int VISIT_TIMES { get; set; }

        public string BED_NO { get; set; }

        public string SEX { get; set; }

        public string AGE { get; set; }
        public string AGE_DESC { get; set; }

        /// <summary>
        /// 生日
        /// </summary>
        public DateTime? DATE_OF_BIRTH { get; set; }

        /// <summary>
        /// 入院时间
        /// </summary>
        public DateTime IN_DATE { get; set; }

        /// <summary>
        /// 入科时间
        /// </summary>
        public DateTime IN_DEPARTMENT_DATE { get; set; }

        /// <summary>
        /// 出院时间
        /// </summary>
        public DateTime? OUT_DATE { get; set; }

        /// <summary>
        /// 护理等级 Ⅰ级护理、Ⅱ级护理
        /// </summary>
        public string NURSING { get; set; }

        /// <summary>
        /// 联系方式
        /// </summary>
        public string PHONE { get; set; }

        /// <summary>
        /// 联系方式
        /// </summary>
        public string CONTACT_PHONE { get; set; }


        /// <summary>
        /// 科室编码
        /// </summary>
        public string DEPARTMENT_ID { get; set; }


        /// <summary>
        /// 科室名称
        /// </summary>
        public string DEPARTMENT_NAME { get; set; }

        /// <summary>
        /// 医疗机构编码
        /// </summary>
        public string HOSP_ID { get; set; }

        /// <summary>
        /// 医疗机构名称
        /// </summary>
        public string HOSP_NAME { get; set; }

        /// <summary>
        /// 主治医生ID
        /// </summary>
        public string DOCTOR_ID { get; set; }

        /// <summary>
        /// 主治医生
        /// </summary>
        public string DOCTOR_NAME { get; set; }

        /// <summary>
        /// 病区
        /// </summary>
        public string NURSE_CELL_CODE { get; set; }

        /// <summary>
        /// 病区
        /// </summary>
        public string NURSE_CELL_NAME { get; set; }

        /// <summary>
        /// 护士ID
        /// </summary>
        public string NURSE_ID { get; set; }

        /// <summary>
        /// 护士
        /// </summary>
        public string NURSE_NAME { get; set; }

        /// <summary>
        /// 新增时间
        /// </summary>
        public DateTime INSERT_TIME { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime UPDATE_TIME { get; set; }

        /// <summary>
        /// 修改人员
        /// </summary>
        public string UPDATE_USER { get; set; }

        /// <summary>
        /// 诊断
        /// </summary>
        public string DIAGNOSE { get; set; }

        /// <summary>
        /// 过敏史
        /// </summary>
        public string ALLERGY { get; set; }


        /// <summary>
        /// 预付款
        /// </summary>
        public decimal PREPAY_COST { get; set; }



        /// <summary>
        /// 社保类型：自费/城乡居民/医保/社区医保
        /// </summary>
        public string MEDICAL_TYPE { get; set; }

        /// <summary>
        /// 状态：在院/出院
        /// </summary>
        public string STATUS { get; set; }

        /// <summary>
        /// 危重等级  一般、病危、病重...不同医院配置不同
        /// </summary>
        public string WZ_STATUS { get; set; }

        /// <summary>
        /// 余额：负表示欠款
        /// </summary>
        public decimal TOTAL_MONEY { get; set; }

        /// <summary>
        /// 血型
        /// </summary>
        public string BLOOD_TYPE { get; set; }

        /// <summary>
        /// 民族
        /// </summary>
        public string NATIONALS { get; set; }

        /// <summary>
        /// 婚姻状况
        /// </summary>
        public string MARRIAGE { get; set; }

        public string JOB { get; set; }

        /// <summary>
        /// 教育程度
        /// </summary>
        public string EDUCATION { get; set; }

        /// <summary>
        /// 主诉
        /// </summary>
        public string CHIEFCOMPLAINT { get; set; }


        ///////扩展字段：/////////////////////////////////////////////////////////////////////////////////////////////////////
        /// <summary>
        /// 花费             预交金额-余额：PREPAY_COST - TOTAL_MONEY
        /// </summary>
        [System.Xml.Serialization.XmlIgnore]
        public decimal COST { get; set; }

        /// <summary>
        /// 手术信息
        /// </summary>
        [System.Xml.Serialization.XmlIgnore]
        [DefaultValue("今日无手术信息")]
        public string OperatingInfo { get; set; }
    }
}
